using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Ent.Web.Helper;
using Ent.Web.WebControl;
public partial class Controls_TabbedPanel : System.Web.UI.UserControl
{
    private Unit _height = Unit.Percentage(100);
    public Unit Height
    {
        get { return _height; }
        set { _height = value; }
    }
    private Unit _width = Unit.Percentage(100);
    public Unit Width
    {
        get { return _width; }
        set { _width = value; }
    }
    public Control FirstTabControl
    {
        set { tabFirst.Controls.AddAt(0, value); }
    }
    public Control SecondTabControl
    {
        set { tabSecond.Controls.AddAt(0, value); }
    }
    public Control ThirdTabControl
    {
        set { tabThird.Controls.AddAt(0, value); }
    }
    public Control FirstPanelControl
    {
        set { pnlFirst.Controls.AddAt(0, value); }
    }
    public Control SecondPanelControl
    {
        set { pnlSecond.Controls.AddAt(0, value); }
    }
    public Control ThirdPanelControl
    {
        set { pnlThird.Controls.AddAt(0, value); }
    }
    private DashEntry _entryTemplate = new DashEntry();
    [PersistenceMode(PersistenceMode.InnerProperty), TemplateContainer(typeof(TemplateControl))]
    public DashEntry EntryTemplate
    {
        get { return _entryTemplate; }
        set { _entryTemplate = value; }
    }
    public Controls_TabbedPanel()
    {
        this.PreRender += new EventHandler(Controls_TabbedPanel_PreRender);
    }

    void Controls_TabbedPanel_PreRender(object sender, EventArgs e)
    {
        tdFirst.Width = StringHelper.ConvertUnitToString(_width);
        tdSecond.Width = StringHelper.ConvertUnitToString(_width);
        tdThird.Width = StringHelper.ConvertUnitToString(_width);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
}
